package com.jxau.mall.demo.controller;

import com.jxau.mall.common.enums.ResponseEnum;
import com.jxau.mall.common.util.ResponseVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: shop
 * @Belongspackage: com.jxau.mall.demo.controller
 * @Author: guojiani
 * @CreateTime: 2025-03-20 20:46
 * @Description: TODO
 * @Version: 1.0
 */
@RestController //这是一个控制器
public class HelloController {
    @GetMapping("/hello") //注解： URI
    public ResponseVO<String> hello(){
        String s = "Hello SpringBoot!";
        return ResponseVO.success(s);
    }
    @GetMapping("/show")
    public ResponseVO showme(){

        return ResponseVO.success("哈哈哈哈哈");
    }

}
